package cn.yusei.teamTribe.constant;

import java.lang.reflect.Field;

public class RoleType {

	public static final int SCHOOL_TEAM_MASTER = 1;
	
	public static final int TEAM_MASTER = 2;
	
	public static final int TEAM_MANAGER = 3;
	
	private static final Field fields[] = RoleType.class.getFields();
	
	public static boolean isRoleType(int roleType)
	{
		try
		{
			for(Field field : fields)
			{
				if(field.getInt(RoleType.class) == roleType)
					return true;
			}
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
		return false;
	}
	
}
